package com.lrkj.back.service.impl;

import java.util.List;
import java.util.Map;

import com.lrkj.back.entity.KcRukun;
import com.lrkj.back.mapper.KcRukunMapper;
import com.lrkj.back.service.KcRukunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.com.cbons.mamisay.parent.db.api.DBInterface;
import cn.com.cbons.mamisay.parent.exception.DBException;
import cn.com.cbons.mamisay.parent.service.base.ParentServiceImpl;

@Transactional
@Service("kcRukunService")
public class KcRukunServiceImpl extends ParentServiceImpl<KcRukun> implements KcRukunService {

    @Autowired
    private KcRukunMapper kcRukunMapper;

    @Override
    protected DBInterface<KcRukun> getDao() throws DBException {
        // TODO Auto-generated method stub
        return kcRukunMapper;
    }

    @Override
    public List<KcRukun> findRukun(Map<String, Object> map) {

        return kcRukunMapper.findRukun(map);

    }

}
